/**
 * yeahmobi.com Inc.
 * Copyright © 2014 YeahMobi | All Rights Reserved.
 */

package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author giser.yang
 * @Title: PagePermission.java
 * @Copyright: Copyright © 2015
 * @Description:
 * @Company: yeahmobi
 * @Created on 下午2:47:13
 */

/**
 * id
 fb_user_id
 fb_business_id
 page_id
 role
 status
 */

@Setter
@Getter
@NoArgsConstructor
@Table("fb_userpermissions_pages")
public class PagePermission implements Serializable {
    private static final long serialVersionUID = 4941233683542026148L;
    @Id
    private Long id;
    //Column:fb_user_id
    private Long fbUserId;
    //Column:fb_business_id
    private Long fbBusinessId;
    //Column:page_id
    private Long pageId;
    /*	MANAGER Can manage admin roles, send messages and post as the Page, create ads and view insights.
        CONTENT_CREATOR Can edit the Page, send messages and post as the Page, create ads, and view insights.
        ADVERTISER Can create ads for the Page and view insights.
        MODERATOR Can respond to and delete comments on the Page, send messages as the Page, create ads, and view insights.
        INSIGHTS_ANALYST Can view insights.*/
    //Column:role
    private String role;
    //Column:status
    private String status;
}
